package com.whale;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class WhaleActivity extends Activity {

	private Button trendButton;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		trendButton = (Button) findViewById(R.id.TrendButton);

		trendButton.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent();// Intent是不同的activity之间的信使，充当双方的媒介
				intent.setClass(WhaleActivity.this, ReplyActivity.class);// 制定信使的发起方和重点方
				WhaleActivity.this.startActivity(intent);// 为当前这个activity指定信使并启动
			}
		});
	}

}